package com.innovation.action.admin;

import com.innovation.action.BaseAdminAction;
import com.innovation.data.model.Player;
import com.innovation.message.AdminResultProto.AdminResult;
import com.innovation.service.PlayerService;

/**
 * 给玩家加人民币
 * @author Administrator
 *
 */
public class AddGoldAction extends BaseAdminAction {
	
	@Override
	protected void done(String[] ps, Player player, AdminResult.Builder result) {
		int addGold = Integer.valueOf(ps[0]);
		
//		//加人民币
		PlayerService.addGold(player, addGold, 2);
		
		result.setResult(true);
	}
}
